package com.stardata.liangshisq.tcslmon.job;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.stardata.liangshisq.tcslmon.service.ObjectSyncLogService;
import com.stardata.liangshisq.tcslmon.service.OrderScheduleService;
import com.stardata.liangshisq.tcslmon.service.SyncStatusService;
import com.stardata.liangshisq.tcslmon.util.CommonConstants;
import com.stardata.liangshisq.tcslmon.util.JSONUtil;

/**
 * 将订单的预约信息同步到待加工
 */
@Component
public class QueueScheduleTask {
	 private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	  @Autowired
	  private OrderScheduleService scheduleService;
	
	  @Scheduled(cron = "0/5 * * * * ?")
	  public void doAutoQueueOrderSchedules(){
		  try {
			 logger.info("=====>>>>>使用QueueScheduleTask-scheduled  {}",new Date());	 
			 scheduleService.autoQueueOrderSchedules();
		  }catch(Exception ex) {
			  
		  }
	 }
	

}
